package com.vf.admin.utils;

import com.google.zxing.common.BitMatrix;
import java.awt.*;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Random;

/**
 * 二维码工具类
 */
public class RQcodeUtil {
    private RQcodeUtil() {
    }
    public static RQcodeUtil getInstance() {
        return new RQcodeUtil();
    }
    public void productcode(String content,String picPath) {
//        QRcodeUtils qrCode = new QRcodeUtils();
//        String logoPath = "D:/erweima/1.jpg";
//        String format = "jpg";
//        int width = 180;
//        int height = 220;
//        BitMatrix bitMatrix = qrCode.setBitMatrix(content, width, height);
//        // 可通过输出流输出到页面,也可直接保存到文件
//        OutputStream outStream = null;
//        try {
//            outStream = new FileOutputStream(new File(path));
//            qrCode.writeToFile(bitMatrix, format, outStream, logoPath);
//            outStream.close();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        // 添加文字效果
//        int fontSize = 12; // 字体大小
//        int fontStyle = 1; // 字体风格
//        String text = "测试二维码";
//        String withTextPath = "D:/erweima/222.png";
//        qrCode.pressText(text, withTextPath, path, fontStyle, Color.BLUE, fontSize, width, height);
////        qrCode.zxingCodeCreate("http://www.baidu.com", "D:/erweima/",500,"D:/erweima/111.jpg");
    }

    public static void main(String[] args) {
        Integer a=1;
        long b=1;
        System.out.println(a>=b);
    }


}
